package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dto.SensitiveDTO;
import com.heima.model.admin.pojo.AdSensitive;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


public interface SensitiveService extends IService<AdSensitive> {

    PageResponseResult sensitiveList(SensitiveDTO dto);

    ResponseResult saveSensitive(SensitiveDTO dto);

    ResponseResult updateSensitive(AdSensitive sensitive);

    ResponseResult deleteSensitive(Integer id);
    /**
     * 查询敏感词内容列表
     * @return
     */
    public ResponseResult<List<String>> selectAllSensitives();
}
